//
//  XinShouShouCeViewController.m
//  XiangMu
//
//  Created by 康世标 on 15/7/17.
//  Copyright (c) 2015年 康世标. All rights reserved.
//

#import "XinShouShouCeViewController.h"

@interface XinShouShouCeViewController ()

@end

@implementation XinShouShouCeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.tabBarController.tabBar.hidden = YES;
    
    self.title = @"新手手册";
    // Do any additional setup after loading the view from its nib.
    UIButton *fanHuiBtn=[UIButton buttonWithType:UIButtonTypeCustom];
    fanHuiBtn.frame=CGRectMake(20, 20, 10, 20);
    
    [fanHuiBtn setBackgroundImage:[UIImage imageNamed:@"fanhui"] forState:UIControlStateNormal];
    
    [fanHuiBtn addTarget:self action:@selector(FanHui) forControlEvents:UIControlEventTouchUpInside];
    
    UIBarButtonItem *barFanHui=[[UIBarButtonItem alloc]initWithCustomView:fanHuiBtn];
    self.navigationItem.leftBarButtonItem=barFanHui;
    
    self.webView1.scalesPageToFit = YES;
    [self.webView1 loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:URL_XINSHOUSHOUCE]]];
    

}
- (void)FanHui{
    
    [self.navigationController popViewControllerAnimated:YES];
    self.tabBarController.tabBar.hidden = NO;
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
